package com.example.guide.properties;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Runner implements ApplicationRunner {

    @Autowired
    Car car;


    @Autowired
    User user;

    @Override
    public void run(ApplicationArguments args) throws Exception {
       // log.info(student.toString());
        log.info(car.toString());
        log.warn(car.toString());
        log.error(car.toString());

        log.info(user.toString());
    }
}
